#include "experimentProWindow_dialogFilter.h"
#include "ui_experimentProwindow_dialogFilter.h"

ExperimentProWindow_dialogFilter::ExperimentProWindow_dialogFilter(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::ExperimentProWindow_dialogFilter)
{
    ui->setupUi(this);

    _posiPannel = new PosiPannel(8, 12, 1, this);
    ui->horizontalLayout_pannel->addWidget(_posiPannel);

}

ExperimentProWindow_dialogFilter::~ExperimentProWindow_dialogFilter()
{
    delete ui;
}

void ExperimentProWindow_dialogFilter::on_pushButton_accept_clicked(){

    emit sigSelectedChange(_posiPannel->getSelectList());
    this->close();
}

void ExperimentProWindow_dialogFilter::on_pushButton_reject_clicked(){
    this->close();
}

PosiPannel& ExperimentProWindow_dialogFilter::component(){
    return *_posiPannel;
}
